/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.only5.gui.client;

import edu.uoc.tdp.pac4.only5.domain.EnumRole;
import edu.uoc.tdp.pac4.only5.domain.User;

/**
 * Sessió d'un usuari
 * @author Gerard
 */
public class ClientSession {
    
    private static ClientSession instance = new ClientSession();
    
    private User user;
    
    private EnumRole role;
    
    private ClientSession(){
        
    }
    
    public static ClientSession getInstance(){
        return instance;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public EnumRole getRole() {
        return role;
    }

    public void setRole(EnumRole role) {
        this.role = role;
    }

}
